/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.asdtiang.study.aop;

import java.lang.reflect.Method;

/**
 *
 * @author Administrator
 */
public class LoggerOperation implements IOperation{

    public void start(Method method) {
        Logger.logging(Level.INFO, method.getName() + " Method Start!");
        Thread thread=Thread.currentThread();
        Logger.logging(Level.INFO,thread.getName()+thread.activeCount());
    }

    public void end(Method method) {
         Logger.logging(Level.DEBUGE, method.getName() + " Method end .");
         Thread thread=Thread.currentThread();
         Logger.logging(Level.INFO,thread.getName());
    }

}
